package com.tongzhan.entity.party;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tongzhan.annotation.ColumnDoc;
import com.tongzhan.annotation.PrimaryKey;
import com.tongzhan.annotation.TableDoc;
import com.tongzhan.base.BaseModel;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**通知公告表
 * @author hongjianbin
 * @date 2020/7/14
 */
@TableDoc(table = "t_notice",desc = "通知公告表")
@Data
@Document(collection = "t_notice")
public class Notice extends BaseModel {

    @PrimaryKey
    @ColumnDoc("主键id")
    private String id;//通知公告id

    @ColumnDoc("标题")
    private String title;//标题

    @ColumnDoc("通知公告内容")
    private String notice_content;//通知公告内容

    @ColumnDoc("图片")
    private String notice_picture;//图片

    @ColumnDoc("具体时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date time;//具体时间

    @ColumnDoc("上报人id")
    private String addUserId;//上报人id

    @ColumnDoc("上报人名称")
    private String addUserName;//上报人名称

    @ColumnDoc("是否删除")
    private  Integer is_del;//是否删除

    @ColumnDoc("街道code")
    private String streetCode;

    @ColumnDoc("村社区")
    private String villageCode;//村社区

}
